//---------------------------------------------------------------------------

#ifndef DPEmiCtrSocH
#define DPEmiCtrSocH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "DIALPAD.h"
#include "PHDS.h"
#include <ExtCtrls.hpp>
#include <Buttons.hpp>
#include "DModule.h"
#include "stdm.h"
#include "PHEdit.h"
#include "PHLabel.h"
#include "PHSpdBut.h"
#include <FileCtrl.hpp>
#include <Grids.hpp>
#include "PHCheck.h"
#include "PHSPDBUT.h"
//---------------------------------------------------------------------------
class TDPEmiCtrSoc1 : public TDiPad
{
   __published:	// IDE-managed Components
           TBitBtn *BitBtn1;
           TBitBtn *BitBtn2;
           PHLabel *PHLabel2;
           PHEdit *PHEdit2;
           PHSpeedButton *PHSpeedButton1;
           TFileListBox *FileListBox1;
           TStringGrid *SG;
           PHLabel *PHLabel1;
           PHEdit *PHEdit1;
           PHSpeedButton *PHSpeedButton2;
           PHEdit *PHEdit3;
        PHCheckBox *PHCheckBox1;
           void __fastcall BitBtn1Click(TObject *Sender);
           void __fastcall BitBtn2Click(TObject *Sender);
           void __fastcall FormShow(TObject *Sender);
           void __fastcall SGDblClick(TObject *Sender);

   private:// User declarations

           void __fastcall BuscaContrato();
           void __fastcall InsertReg(int Col,int Row,AnsiString Value);
           void __fastcall CalculaMedidas(int LinhasCount);

   public:// User declarations

           __fastcall TDPEmiCtrSoc1(TComponent* Owner);
           AnsiString ModeloContrato;
           AnsiString Cliente;
           AnsiString ContratoGerar;
           AnsiString ContratoAnterior;
           unsigned long DataGerar;
           bool Confirmou;
           bool SepararParagrafos;
};
//---------------------------------------------------------------------------
extern PACKAGE TDPEmiCtrSoc1 *DPEmiCtrSoc1;
//---------------------------------------------------------------------------
#endif
